﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using Landscape.Business.Entities;
using Landscape.Business;
using Landscape.Business.FNH.Activities;
using System.Web.Routing;

namespace Landscape.WebApp
{
    public class Global : System.Web.HttpApplication
    {
        private static List<SystemModule> _AppInternalModules = null;

        public static List<SystemModule> AppInternalModules
        {
            get
            {               
                return _AppInternalModules;
            }
        }

        protected void Application_Start(object sender, EventArgs e)
        {
            RouteTable.Routes.MapHubs();

                        

            if (_AppInternalModules == null)
            {
                _AppInternalModules = new List<SystemModule>();
                AdminActivities adminActs = new AdminActivities();
                _AppInternalModules.AddRange(adminActs.GetAllInternalSystemModules());
            }
        }

        protected void Session_Start(object sender, EventArgs e)
        {

        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {

        }

        protected void Application_AuthenticateRequest(object sender, EventArgs e)
        {

        }

        protected void Application_Error(object sender, EventArgs e)
        {

        }

        protected void Session_End(object sender, EventArgs e)
        {

        }

        protected void Application_End(object sender, EventArgs e)
        {

        }        
    }
}